<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'TableTitle',
  props: {
    title: String
  }
})
</script>

<template>
  <div>
    <h3 v-if="$slots.tableTitle">
      <slot name="tableTitle"></slot>
    </h3>
    <h3 v-if="!$slots.tableTitle && title">{{ title }}</h3>
  </div>
</template>